package cn.edu.njpi;

import javafx.application.Application;
import javafx.application.Platform;
import javafx.stage.Stage;

/**
 * @author 朱宗辉
 * @version V1.0
 * @Package cn.edu.njpi
 * @date 2022/5/10 8:24 PM
 */
public class Main extends Application {
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage stage) throws Exception {
        Platform.runLater(() -> {
            System.out.println("runLater线程名 = " + Thread.currentThread().getName());
            for (int i = 0; i < 10; i++) {
                System.out.println("i = " + i);
            }
        });
        System.out.println("runLater下面");
        System.out.println("runLater下面 线程名 = " + Thread.currentThread().getName());
    }
}
